import request from '@/utils/request'

// 查询平台用户信息列表
export function listPlatformusers(query) {
  return request({
    url: '/platformusers/platformusers/list',
    method: 'get',
    params: query
  })
}

// 查询平台用户信息详细
export function getPlatformusers(userId) {
  return request({
    url: '/platformusers/platformusers/' + userId,
    method: 'get'
  })
}

// 新增平台用户信息
export function addPlatformusers(data) {
  return request({
    url: '/platformusers/platformusers',
    method: 'post',
    data: data
  })
}

// 修改平台用户信息
export function updatePlatformusers(data) {
  return request({
    url: '/platformusers/platformusers',
    method: 'put',
    data: data
  })
}

// 删除平台用户信息
export function delPlatformusers(userId) {
  return request({
    url: '/platformusers/platformusers/' + userId,
    method: 'delete'
  })
}
